package com.lclz.util;

/**
 * 
 * @author weiw
 * 
 */
public class RESTFulException extends Exception {

	private static final long serialVersionUID = 1L;

	public int code; // required
	public String reason; // required
	public String detail; // required

	public RESTFulException() {
	}

	public RESTFulException(int code, String reason, String detail) {
		this.code = code;
		this.reason = reason;
		this.detail = detail;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	@Override
	public String toString() {
		return "RESTFulException [code=" + code + ", reason=" + reason
				+ ", detail=" + detail + "]";
	}

}